package com.wynne.ptldemo.repository;


import com.wynne.ptldemo.pojo.PtlRouteStatus;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface PtlRouteStatusRepository extends JpaRepository<PtlRouteStatus, Long> {

    List<PtlRouteStatus> findByRouteCodeAndStatusCode(String routeCode, String statusCode);

    List<PtlRouteStatus> findByRouteCodeOrderBySeq(String routeCode);

    PtlRouteStatus getByRouteCodeAndStatusCodeAndTriggerEvent(String routeCode, String statusCode, String triggerEvent);
}
